package cn.crm.controller;

import cn.crm.pojo.CstActivity;
import cn.crm.pojo.CstLinkman;
import cn.crm.service.BasDictService;
import cn.crm.service.CstActivityService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/CstActivity")
public class CstActivityController {
    @Autowired
    private CstActivityService cstActivityService;
    @PostMapping("/Page")
    public Page getPage(Page page){
        return cstActivityService.page(page);
    }
    @GetMapping("/{custNo}")
    public List<CstActivity> getListByCustNo(@PathVariable String custNo){
        return cstActivityService.getListByCustNo(custNo);
    }
}
